package o;

import androidx.annotation.NonNull;
import java.util.HashMap;

public class ety {
    private static HashMap<String, Class> ʼ = new HashMap();
    private static etq ˊ;
    private static ets ˋ;
    private static etx ˎ;
    private static etw ˏ;
    private static etr ॱ;

    public static ets ॱ() {
        if (ˋ == null) {
            ˋ = (ets) ˎ("IshowPermissionDialog");
        }
        return ˋ;
    }

    public static etr ˎ() {
        if (ॱ == null) {
            ॱ = (etr) ˎ("IPackageIntercepterDialog");
        }
        return ॱ;
    }

    public static etx ˊ() {
        if (ˎ == null) {
            ˎ = (etx) ˎ("IServiceStub");
        }
        return ˎ;
    }

    public static etq ˋ() {
        if (ˊ == null) {
            ˊ = (etq) ˎ("IReserveListSync");
        }
        return ˊ;
    }

    public static etw ˏ() {
        if (ˏ == null) {
            ˏ = (etw) ˎ("IShowVideoFailDialog");
        }
        return ˏ;
    }

    public static <T> void ˋ(@NonNull String str, Class<T> cls) {
        ʼ.put(str, cls);
    }

    private static <T> T ˎ(@NonNull String str) {
        Class cls = (Class) ʼ.get(str);
        if (cls == null) {
            return null;
        }
        try {
            return cls.newInstance();
        } catch (InstantiationException e) {
            Logger.ˋ("ServiceStubWrapper", "productServiceStub InstantiationException : " + e.toString());
            return null;
        } catch (IllegalAccessException e2) {
            Logger.ˋ("ServiceStubWrapper", "productServiceStub IllegalAccessException : " + e2.toString());
            return null;
        }
    }
}
